package org.univie.mappr;

import android.os.Bundle;
import android.preference.EditTextPreference;
import android.preference.PreferenceActivity;
import android.text.method.DigitsKeyListener;

public class PreferencesView extends PreferenceActivity {
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		addPreferencesFromResource(R.xml.mappr_preferences);
		
		// set the map items preference to accept only digits
		EditTextPreference mapItems = (EditTextPreference) findPreference("preferences_categories_maps_items");
		mapItems.getEditText().setKeyListener(DigitsKeyListener.getInstance());
	}
}
